package com.learn.databinding.workwithobservabledataobjects.bindlayoutwithlivedata

import android.util.Log
import android.widget.CheckBox
import android.widget.CompoundButton
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class BindLayoutWidthLiveDataViewModel : ViewModel() {
    val userName:LiveData<String> = MutableLiveData()
    val rememberMe:MutableLiveData<Boolean> = MutableLiveData()

    fun rememberMeChanged(isChecked:Boolean){
        rememberMe.value = isChecked
        Log.d("rememberMeChanged","${rememberMe.value}")
    }
}